package com.wondertek.service.dto.business.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.Getter;

import java.util.List;

/**
 * @author wangyu
 */
@Data
public class NetworkInfoReq {

    @Schema(name = "deviceSn",description = "设备sn")
    @NotBlank
    private String deviceSn;

    @Schema(name = "ipAddress",description = "ip地址")
    @NotBlank
    private String ipAddress;

    @Schema(name = "subNetworkMask",description = "子网掩码")
    @NotBlank
    private String subNetworkMask;

    @Schema(name = "defaultGateway",description = "默认网关")
    @NotBlank
    private String defaultGateway;

    @Schema(name = "dns",description = "dns")
    @NotEmpty
    private List<String> dns;

    @Schema(name = "physicalAddress",description = "mac")
    @NotBlank
    private String physicalAddress;

    @Schema(name = "dhcpEnable",description = "是否开启dhcp（动态主机配置协议）")
    @NotNull
    private boolean dhcpEnable;

}
